package com.yykt.myapp.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.NonNull;

import javax.validation.constraints.NotNull;

@AllArgsConstructor
@Data
@NoArgsConstructor
public class User {

    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public static class Address {
        public String province;
        public String city;
        public String district;
    }

    @NotNull(message = "name 不能为空")
    public String name;
    public Integer age;
    public Address address;
}
